#pragma once

enum Dota_CommandType
{
	Dota_CT_ExpotChaToXFL,
	Dota_CT_ExpotChaToJson,	
	Dota_CT_ExpotXFLToCha,
};

class DotaCommand
{
public:
	DotaCommand(void);
	~DotaCommand(void);
	
	virtual const char *desc();
	virtual void parseArgv(int nVar, char* argv[]);
	virtual bool run();

private:
	bool ExportChaToXFL();
	bool ExportXFLToCha();
	bool ExportChaToJson();

	bool ExportChaToJson(const char *pFileName);

private:
	Dota_CommandType m_nType;
	std::string m_strFromDir;
	std::string m_strToDir;
	std::string m_strSoundDir;

	bool m_bSound;
	bool m_bImage;
};

